package jwcb.javapjframework.ms_template.service.controller;

import jwcb.javapjframework.ms_template.service.service.TestThreadPoolServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/test/threadPool")
public class TestThreadPoolController {

    @Autowired
    private TestThreadPoolServiceImpl testThreadPoolService;
    @GetMapping("/info")
    public void info() {
        log.info("TestThreadPoolController thread name: {}",Thread.currentThread().getName());
        testThreadPoolService.info();
    }
}
